<div>
	<hr>
	<ul class="breadcrumb">
		<li>
			<?php echo $this->Html->link('Trang chủ', array('controller' => 'backends', 'action' => 'admin_index'));?> <span class="divider">/</span>
		</li>
		<li>
			<?php echo $this->Html->link('Thể loại ứng dụng', array('controller' => 'categories', 'action' => 'admin_index'));?>
		</li>
	</ul>
	<hr>
	
</div>
<div class="row-fluid sortable">	
	<div class="box span12">
		<?php echo $this->Session->flash('good'); ?>
		<?php echo $this->Session->flash('bad'); ?>
		<div class="box-header">
			<h2><i class="icon-tasks"></i><span class="break"></span>Hiển thị tất cả các thể loại ứng dụng</h2>
		</div>
		
		<div class="box-content">
			<table cellpadding="10" cellspacing="10">
				<tr class="top-border">
						<th width="30"><?php echo $this->Paginator->sort('id', 'ID'); ?></th>
						<th width="150"><?php echo $this->Paginator->sort('name', 'Tên thể loại'); ?></th>
						<th><?php echo $this->Paginator->sort('alias'); ?></th>
						<th width="400"><?php echo $this->Paginator->sort('description', 'Mô tả ứng dụng'); ?></th>
						<th><?php echo $this->Paginator->sort('created', 'Ngày tạo'); ?></th>
						<th class="actions"><?php echo __('Tác vụ'); ?></th>
				</tr>
				<?php foreach ($categories as $category): ?>
				<tr>
					<td><?php echo h($category['Category']['id']); ?>&nbsp;</td>
					<td><?php echo h($category['Category']['name']); ?>&nbsp;</td>
					<td><?php echo h($category['Category']['alias']); ?>&nbsp;</td>
					<td><?php echo h($category['Category']['description']); ?>&nbsp;</td>
					<td><?php echo date('d/m/Y', $category['Category']['created']); ?>&nbsp;</td>
					<td class="actions">
						<?php echo $this->Html->link(__('View'), array('action' => 'admin_view', $category['Category']['id'])); ?>
						<?php echo $this->Html->link(__('Edit'), array('action' => 'admin_edit', $category['Category']['id'])); ?>
						<?php echo $this->Form->postLink(__('Delete'), array('action' => 'admin_delete', $category['Category']['id']), null, __('Are you sure you want to delete # %s?', $category['Category']['id'])); ?>
					</td>
				</tr>
				<?php endforeach; ?>
			</table>
		</div>	
	</div><!--/span-->

</div><!--/row-->

	

	<hr>